package com.ddtech.business.web.entity;

import com.ddtech.business.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 笔记表
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Note对象", description="笔记表")
public class Note extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "章节id")
    @NotBlank(message = "章节id不能为空")
    private String chapterId;

    @ApiModelProperty(value = "章节名称")
    private String chapterName;

    @ApiModelProperty(value = "课程id")
    @NotBlank(message = "课程id不能为空")
    private String courseId;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "笔记内容")
    private String noteContent;

    @ApiModelProperty(value = "是否公开，1是公开，0是不公开")
    private Integer isPublic;

    @ApiModelProperty(value = "学员id")
    private String userId;

    @ApiModelProperty(value = "学员姓名")
    private String userName;

    public static final String USER_ID="user_id";
}
